import logging
import logging.config
from lib.conf.config import settings


def get_logger(name='agent'):
    logging.config.dictConfig(settings.LOGGING)
    logger = logging.getLogger(name)
    return logger

